const program = require('commander');

program.version('1.0.0')
  .option('-p,--port <port>', '服务器端口号')
  .parse(process.argv);

module.exports = {
  server: {
    port: program.port || 3000,
    host: '127.0.0.1',
  },
  database: {
    port: 27017,
    host: '127.0.0.1',
    dbname: 'ques',
  },
  imgUrl: 'http://127.0.0.1:3000/uploads',
};
